package com.niit.onlinemusicserver.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.niit.onlinemusicserver.common.R;
import com.niit.onlinemusicserver.model.domain.Collect;
import com.niit.onlinemusicserver.model.request.CollectRequest;

public interface CollectService extends IService<Collect> {
  R collectionOfUser(Integer userId);

  //是否已收藏
  R existSongId(CollectRequest isCollectRequest);
  //添加收藏
  R addCollection(CollectRequest addCollectRequest);
  //取消收藏
  R deleteCollect(Integer userId,Integer songId);
}